<template>
    <div id="loginForm">
        <div id="loginLogo">
            <img src="../assets/logo.png" />
        </div>

        <el-button @click="visible = true">按钮</el-button>
        <el-button @click="startHacking()">按钮1</el-button>
        <el-dialog v-model="visible" title="Hello world">
            <p>欢迎使用 Element</p>
        </el-dialog>
    </div>
</template>

<script>

    export default {
        name: 'App',
        data () {
            return {
                visible: false,
                form: {
                    name: '',
                    region: '',
                    desc: ''
                }
            }
        },

        methods: {
            startHacking () {
                this.$notify({
                    title: 'It Works',
                    message: '我是提醒框，六秒后我会自动关闭！',
                    duration: 6000
                })
            }
        }
    }
</script>

<style>
    body {
        font-family: Helvetica, sans-serif;
    }

    #loginForm{
        margin:0px auto;
        margin-top: 10%;
        width: 40%;
    }

    #loginLogo img{
        display: block;
        margin: 0 auto;
    }

</style>